#模块：xxx.py
import os

print(os.path)
#获取当前文件
path = os.path.dirname(__file__)
print(path)
print(type(path))
result = os.path.join(path,'a2.txt')
print(result)

with open(r'F:\代码\代码\python\bilibili\aa.txt','rb') as stream:
    container = stream.read()
    print(stream.name)
    file = stream.name
    filename = file[file.rfind('\\')+1:]
    # len(file)->31
    # file.rfind('\\')->24
    # file[[file.rfind('\\')+1:]]==file[25:]
    print(filename)
    path = os.path.dirname(__file__)
    os.path.join(path,filename)
    with open() as

